<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
    <title>Thymeleaf Example</title>
</head>
<body>
    <div>
        <p><strong>Account:</strong><span th:text="${entity.account}"></span></p>
        <p><strong>Name:</strong><span th:text="${entity.name}"></span></p>
        <p><strong>Age:</strong><span th:text="${entity.age}"></span></p>
        <p>
            <strong>Sex:</strong>
            <span th:if="${entity.sex} == 0">未知</span>
            <span th:if="${entity.sex} == 1">男</span>
            <span th:if="${entity.sex} == 2">女</span>
        </p>
        <p><strong>CreateTime:</strong><span th:text="${entity.createTime}"></span></p>
        <p><strong>UpdateTime:</strong><span th:text="${entity.updateTime}"></span></p>
    </div>
    <div>
        <a th:href="@{'/model/delete/'+${entity.id}}"><button>Delete</button></a>
        <a th:href="@{'/model/edit/'+${entity.id}}"><button>Edit</button></a>
    </div>
</body>
</html>